﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace ConsoleApp1.Models.DB {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_Destroy", DisableSyncStructure = true)]
	public partial class TDestroy {

		/// <summary>
		/// 主键唯一标识
		/// </summary>
		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		/// <summary>
		/// 防区一
		/// </summary>
		[JsonProperty, Column(Name = "areaone")]
		public int? Areaone { get; set; }

		/// <summary>
		/// 防区二
		/// </summary>
		[JsonProperty, Column(Name = "areatwo")]
		public int? Areatwo { get; set; }

		/// <summary>
		/// 数据录入时间
		/// </summary>
		[JsonProperty]
		public DateTime? CreateTime { get; set; }

		/// <summary>
		/// 设备Id十进制形式
		/// </summary>
		[JsonProperty, Column(Name = "deviceId")]
		public long? DeviceId { get; set; }

		/// <summary>
		/// 终端Id
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string TerminalId { get; set; }

		/// <summary>
		/// 采集时间
		/// </summary>
		[JsonProperty]
		public DateTime? Time { get; set; }

	}

}
